package com.baking.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @Author:wrb
 * @Date :2020/1/14/14:29
 * @Describtion:
 **/
public class RedPropertiesUtil {
    public static Properties loadConfigureFilePropertie(String configFileName) throws IOException {
        Properties props = new Properties();
        FileInputStream inputStream = null;
        try {
            inputStream = new FileInputStream(configFileName);
            props.load(inputStream);
        } finally {
            if (inputStream != null)
                inputStream.close();
        }
        return props;
    }
}
